package cn.com.sinosoft.service;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import cn.com.sinosoft.dao.UserMapper;
import cn.com.sinosoft.model.UserEntity;

public class UserServiceImpl implements UserService{

	UserMapper userMapper;
	

	public void setUserMapper(UserMapper userMapper) {
		this.userMapper = userMapper;
	}

	/*@Transactional*/
	public void addUser(UserEntity user) {
		userMapper.addUser(user);
		//Integer.parseInt("ss");
	}

	public List<UserEntity> queryUser(UserEntity user) {
		return userMapper.queryUser(user);
	}

	public void updateUser(UserEntity user) {
		userMapper.updateUser(user);
	}

	public void deleteUser(String id) {
		userMapper.deleteUser(id);
	}

}
